import request from '@/utils/request'

export function getUserList(data) {
  return request({
    url: '/tenant/user?username=' + data.username + '&phone=' + data.phone + '&email=' + data.email + '&pageSize=' + data.pageSize + '&pageNo=' + data.pageNo,
    method: 'get'
  })
}

// 新增员工
export function addUser(data) {
  return request({
    url: '/tenant/user',
    method: 'post',
    data
  })
}

// 获取员工详情
export function editorUserData(id) {
  return request({
    url: '/tenant/user/' + id,
    method: 'get'
  })
}
